import Layout from "@/layout";

const usersRouter = {
  path: "/user/list",
  component: Layout,
  redirect: "noRedirect",
  name: "user",
  alwaysShow: true,
  hidden: false,
  meta: {
    title: "客户管理",
    abbre: "客户",
    icon: "left_menu_user",
    navigation: "/user",
    id: "407"
  },
  children: [
    {
      path: "/user/order_list",
      component: () => import("@/views/order/orderList"),
      name: "order_list",
      hidden: false,
      meta: {
        title: "订单列表",
        noCache: false,
        navigation: "/user/order_list",
        icon: "menu_big_data"
      }
    },
    // {
    //   path: "/user/group",
    //   component: () => import("@/views/user/userGroup"),
    //   name: "user_group",
    //   hidden: false,
    //   meta: {
    //     title: "集团客户",
    //     noCache: true,
    //     navigation: "/user/group",
    //     icon: "menu_big_data"
    //   }
    // },
    {
      path: "/user/group/groupadd",
      component: () => import("@/views/user/userGroupadd"),
      name: "user_group_add",
      hidden: false,
      meta: {
        title: "新增集团客户",
        noCache: true,
        navigation: "/user/group",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/group/groupedit",
      component: () => import("@/views/user/userGroupedit"),
      name: "user_group_edit",
      hidden: false,
      meta: {
        title: "编辑集团客户",
        noCache: true,
        navigation: "/user/group",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/group/groupchild",
      component: () => import("@/views/user/userGroupchild"),
      name: "user_group_edit",
      hidden: false,
      meta: {
        title: "超级管理员",
        noCache: true,
        navigation: "/user/group",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/order_list/see/:id",
      component: () => import("@/views/order/orderList_see"),
      hidden: true,
      name: "order_list_see",
      meta: {
        title: "查看订单",
        bread: "订单列表,查看订单",
        noCache: true,
        navigation: "/user/order_list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/list",
      component: () => import("@/views/user/userList"),
      name: "user_list",
      hidden: false,
      meta: {
        title: "客户列表",
        noCache: true,
        navigation: "/user/list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/list/detail",
      component: () => import("@/views/user/userListDetail"),
      name: "user_list_detail",
      hidden: true,
      meta: {
        title: "编辑客户",
        bread: "客户列表,编辑客户",
        noCache: true,
        navigation: "/user/list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/list/productList",
      component: () => import("@/views/user/userProductList"),
      name: "user_product_list",
      hidden: true,
      meta: {
        title: "产品列表",
        bread: "客户列表,产品列表",
        noCache: true,
        navigation: "/user/list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/list/productMenu",
      component: () => import("@/views/user/userProductMenu"),
      name: "user_product_menu",
      hidden: true,
      meta: {
        title: "排除菜单",
        bread: "客户列表,产品列表,排除菜单",
        noCache: true,
        navigation: "/user/list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/list/account",
      component: () => import("@/views/user/userAccount"),
      name: "user_list_account",
      hidden: true,
      meta: {
        title: "超级管理员账号",
        bread: "超级管理员账号",
        noCache: true,
        navigation: "/user/list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/menu",
      component: () => import("@/views/user/userMenu"),
      name: "user_menu",
      hidden: false,
      meta: {
        title: "客户菜单",
        noCache: true,
        navigation: "/user/menu",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/domain",
      component: () => import("@/views/user/userDomain"),
      name: "user_domain",
      hidden: false,
      meta: {
        title: "域名解析",
        noCache: true,
        navigation: "/user/domain",
        icon: "menu_big_data"
      }
    },
    // 客服管理
    // {
    //   path: "/user/services",
    //   component: () => import("@/views/user/services"),
    //   name: "user_group",
    //   hidden: false,
    //   meta: {
    //     title: "客服管理",
    //     noCache: true,
    //     navigation: "/user/services",
    //     icon: "menu_big_data"
    //   }
    // },
    {
      path: "/advertisement/index",
      component: () => import("@/views/advertisement/index"),
      name: "advertisement_index",
      hidden: false,
      meta: {
        title: "广告列表",
        noCache: false,
        navigation: "/advertisement/index",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/services/add",
      component: () => import("@/views/user/servicesAdd"),
      name: "user_customer_add",
      hidden: false,
      meta: {
        title: "新增客服",
        noCache: true,
        navigation: "/user/services",
        icon: "menu_big_data"
      }
    },
    {
      path: "/user/services/edit",
      component: () => import("@/views/user/servicesEdit"),
      name: "user_customer_edit",
      hidden: false,
      meta: {
        title: "编辑客服",
        noCache: true,
        navigation: "/user/services",
        icon: "menu_big_data"
      }
    },
    
    // {
    //     path: '/user/maintenanceMenu/:type',
    //     component: () =>
    //         import('@/views/user/maintenanceMenu'),
    //     name: 'user_mainmenu',
    //     hidden: true,
    //     meta: { title: '维护菜单', noCache: true, navigation: '/user/maintenanceMenu', icon: 'menu_big_data' }
    // },
    // {
    //     path: '/user/mainMenuDetail',
    //     component: () =>
    //         import('@/views/user/mainMenuDetail'),
    //     name: 'user_mainmenu_detail',
    //     hidden: true,
    //     meta: { title: '菜单设置', noCache: true, navigation: '/user/mainMenuDetail', icon: 'menu_big_data' }
    // },
    // {
    //     path: '/user/type',
    //     component: () =>
    //         import('@/views/user/userType'),
    //     name: 'user_type',
    //     hidden: false,
    //     meta: { title: '客户类型', noCache: true, navigation: '/user/type', icon: 'menu_big_data' }
    // },
  ]
};

export default usersRouter;
